const { Schema, SchemaTypes } = require('../schema');

class VipLevel extends Schema {
    PropertyModelDataTemplate () {
        return {
            description: { type: SchemaTypes.String, required: true },
            discount: { type: SchemaTypes.Number, required: true },
            isDefault: { type: SchemaTypes.Boolean, required: true, default: false },
            createTime: { type: SchemaTypes.Number, required: true, default: require('../../module/tool/time').getCurrentTimestamp() }
        };
    }
}

module.exports = VipLevel;
